package com.jsmtr.rms.entity;

import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * 发表论文
 */
@Entity
@Table(name = "userpaper")
public class UserPaper {

    @Id
    @Column(nullable = false, length = 50)
    private String id; // id

    @Column(nullable = false, length = 50)
    private String rid;//简历ID

    @Column(nullable = false)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date publishTime;

    @Column(nullable = false, length = 100)
    private String paperName;

    @Column(nullable = false, length = 100)
    private String periodical;

    @Column(nullable = false, length = 50)
    private String authorOrder;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getRid() {
        return rid;
    }

    public void setRid(String rid) {
        this.rid = rid;
    }

    public Date getPublishTime() {
        return publishTime;
    }

    public void setPublishTime(Date publishTime) {
        this.publishTime = publishTime;
    }

    public String getPaperName() {
        return paperName;
    }

    public void setPaperName(String paperName) {
        this.paperName = paperName;
    }

    public String getPeriodical() {
        return periodical;
    }

    public void setPeriodical(String periodical) {
        this.periodical = periodical;
    }

    public String getAuthorOrder() {
        return authorOrder;
    }

    public void setAuthorOrder(String authorOrder) {
        this.authorOrder = authorOrder;
    }
}
